/*
 * @Author: FanWeiHua
 * @Date: 2021-07-30 17:34:19
 * @LastEditTime: 2021-08-02 10:05:54
 * @Description: menuOptions
 */
import { BookOutline as BookIcon } from '@vicons/ionicons5';
import { NIcon } from 'naive-ui';
import { h } from 'vue';

function renderIcon(icon) {
  return () => h(NIcon, null, { default: () => h(icon) });
}

const menuOptions = [
  {
    label: 'demo',
    key: 'demo',
    route: '/handle/demo',
    icon: renderIcon(BookIcon)
  },
  {
    label: 'demo1',
    key: 'demo1',
    route: '/handle/demo1',
    icon: renderIcon(BookIcon)
  },
  {
    label: 'demo2',
    key: 'demo2',
    route: '/handle/demo2',
    icon: renderIcon(BookIcon)
  },
  {
    label: 'demo3',
    key: 'demo3',
    route: '/handle/demo3',
    icon: renderIcon(BookIcon)
  }
];
export default menuOptions;
